package com.whq.mvc.base.designpattern.observe;

public class ObserveTest {
    public static void main(String[] args) {
        TikToker1 tikToker = new TikToker1();
        AbstractFans fans1 = new Fans1();
        AbstractFans fans2 = new Fans2();
        fans1.follow(tikToker);
        fans2.follow(tikToker);

        tikToker.startSell();
        System.out.println("------------>");
        fans1.unFollow(tikToker);
        tikToker.endSell();
    }
}
